package com.foreverwin.mes.meapi.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-02-03
 */
@TableName("INVENTORY_ASSY_DATA")
public class InventoryAssyData extends Model<InventoryAssyData> {

    private static final long serialVersionUID = 1L;

   @TableField("HANDLE")
   private String handle;
   @TableField("INVENTORY_BO")
   private String inventoryBo;
   @TableField("SEQUENCE")
   private Long sequence;
   @TableField("DATA_FIELD")
   private String dataField;
   @TableField("DATA_ATTR")
   private String dataAttr;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getInventoryBo() {
      return inventoryBo;
   }

   public void setInventoryBo(String inventoryBo) {
      this.inventoryBo = inventoryBo;
   }

   public Long getSequence() {
      return sequence;
   }

   public void setSequence(Long sequence) {
      this.sequence = sequence;
   }

   public String getDataField() {
      return dataField;
   }

   public void setDataField(String dataField) {
      this.dataField = dataField;
   }

   public String getDataAttr() {
      return dataAttr;
   }

   public void setDataAttr(String dataAttr) {
      this.dataAttr = dataAttr;
   }

   public static final String HANDLE = "HANDLE";

   public static final String INVENTORY_BO = "INVENTORY_BO";

   public static final String SEQUENCE = "SEQUENCE";

   public static final String DATA_FIELD = "DATA_FIELD";

   public static final String DATA_ATTR = "DATA_ATTR";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "InventoryAssyData{" +
         "handle = " + handle +
         ", inventoryBo = " + inventoryBo +
         ", sequence = " + sequence +
         ", dataField = " + dataField +
         ", dataAttr = " + dataAttr +
         "}";
   }
}